// Vue.config.js
module.exports = {
    configureWebpack: {
        resolve: {
            alias: {
                "lib": "@/lib",
                "views": "@/views",
                "components": "@/components"
            }
        }
    },
    devServer: {
        proxy: {
            // 测试本地代理
            'posts': {
                target: "http://localhost:3000",
                changeOrigin: true
            }
        }
    }
}